package com.zhao.data.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the t_role database table.
 * 
 */
@Entity
@Table(name = "t_role")
public class Role implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	private String id;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "createtime")
	private Date createTime;

	@Column(name = "createuser")
	private Long createUser;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "modifytime")
	private Date modifyTime;

	@Column(name = "modifyuser")
	private Long modifyUser;

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return this.modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	private Boolean enabled;

	@Column(name = "role_code")
	private String roleCode;

	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	public void setRoleType(Integer roleType) {
		this.roleType = roleType;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "role_name")
	private String roleName;

	@Column(name = "role_type")
	private Integer roleType;

	private Integer status;

	public Role() {
	}

	public String getRoleCode() {
		return this.roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public int getRoleType() {
		return this.roleType;
	}

	public void setRoleType(int roleType) {
		this.roleType = roleType;
	}

	public int getStatus() {
		return this.status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}